package com.dms.model;

import java.sql.Timestamp;

import com.dms.bean.Announce;
import com.dms.dao.AnnounceDao;



public class AnnounceModel {
	public static boolean add(String content, String title, Timestamp date) {
		boolean val = false;			
			try {
				Announce announce = new Announce();
				announce.setContent(content);
				announce.setTitle(title);
				announce.setDate(date);
				AnnounceDao.add(announce);
				val=true;
			}
			catch (Exception e) {
				e.printStackTrace();
			}
			
			return val;
	}
}
